package com.cloud.consul.comsumer.hystrix;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cloud.consul.comsumer.service.FeignHelloService;

/**
 * 容错
 * @author Thinker
 *
 */
@Component
public class FeignHelloHystrix implements FeignHelloService {

	@Override
	@RequestMapping("/hello")
	public String hello() {

		return "sorry,this service call failed";
	}

	@Override
	public String test() {
		// TODO Auto-generated method stub
		return "sorry,this service call failed";
	}

}
